package com.hckjsec.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.system.mapper.SysPaperMapper;
import com.hckjsec.system.domain.SysPaper;
import com.hckjsec.system.service.ISysPaperService;

/**
 * 论文管理Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-11
 */
@Service
public class SysPaperServiceImpl implements ISysPaperService 
{
    @Autowired
    private SysPaperMapper sysPaperMapper;

    /**
     * 查询论文管理
     * 
     * @param paperId 论文管理ID
     * @return 论文管理
     */
    @Override
    public SysPaper selectSysPaperById(Long paperId)
    {
        return sysPaperMapper.selectSysPaperById(paperId);
    }

    /**
     * 查询论文管理列表
     * 
     * @param sysPaper 论文管理
     * @return 论文管理
     */
    @Override
    public List<SysPaper> selectSysPaperList(SysPaper sysPaper)
    {
        return sysPaperMapper.selectSysPaperList(sysPaper);
    }

    /**
     * 新增论文管理
     * 
     * @param sysPaper 论文管理
     * @return 结果
     */
    @Override
    public int insertSysPaper(SysPaper sysPaper)
    {
        return sysPaperMapper.insertSysPaper(sysPaper);
    }

    /**
     * 修改论文管理
     * 
     * @param sysPaper 论文管理
     * @return 结果
     */
    @Override
    public int updateSysPaper(SysPaper sysPaper)
    {
        return sysPaperMapper.updateSysPaper(sysPaper);
    }

    /**
     * 批量删除论文管理
     * 
     * @param paperIds 需要删除的论文管理ID
     * @return 结果
     */
    @Override
    public int deleteSysPaperByIds(Long[] paperIds)
    {
        return sysPaperMapper.deleteSysPaperByIds(paperIds);
    }

    /**
     * 删除论文管理信息
     * 
     * @param paperId 论文管理ID
     * @return 结果
     */
    @Override
    public int deleteSysPaperById(Long paperId)
    {
        return sysPaperMapper.deleteSysPaperById(paperId);
    }
}
